// 文件项：文件 或 文件夹
export interface NodeItem {
    Name: string;
    isDirectory: boolean;
    FileType: string;
    modifiedTime: string;
    path: string; // path 可以起到 id 作用
    size?: number;
}

export type NodeItems = NodeItem[] | [];

// 操作面板选项类型
export interface Operation {
    icon: string;
    label: string;
    action: (op_object: NodeItem) => void;
}

export type Operations = Operation[];